package com.xidian.zhiancloud.dao.riskcontrol.riskidenva;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xidian.zhiancloud.model.riskcontrol.TRiskJobCheckItemList;
import com.xidian.zhiancloud.model.riskcontrol.entity.TEquipFacStaZY00Entity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 作业活动清单-检查项
 */

public interface TRiskJobCheckItemMapper extends BaseMapper<TRiskJobCheckItemList> {

    //风险辨识-风险辨识-作业活动清单-检查项添加/编辑
    int insertJobCheckItems(@Param("data") TRiskJobCheckItemList data);

    //风险辨识-风险辨识-作业活动清单-检查项添加/编辑
    int updateJobCheckItems
    (@Param("id") Long id,@Param("params") TRiskJobCheckItemList params);

    int deleteJobCheckItems(List<String> list);

    List<TRiskJobCheckItemList> getByIds(Long companyId, String taskAllocatId);

    List<TRiskJobCheckItemList> getByTridentId(
        Long companyId,@Param("id") String id,List<String> tAllIdList);

    int addZY00List(@Param("companyId") Long companyId, @Param("userId") String userId,
                    @Param("data") List<TEquipFacStaZY00Entity> data);
    
}
